#include "editdialog.h"
#include "ui_editdialog.h"

EditDialog::EditDialog(QWidget *parent, int type) :
    QDialog(parent),
    ui(new Ui::EditDialog)
{
    ui->setupUi(this);
    this->type = type;
}

EditDialog::~EditDialog()
{
    delete ui;
}

void EditDialog::on_buttonBox_accepted()
{
    QStringList list;
    list<<ui->lineEdit->text()<<ui->lineEdit_2->text();
    emit doneEdit(list, this->type);
    this->close();
}
